﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QQ.TemplateMethod
{
    class Program
    {
        static void Main(string[] args)
        {
            var cqqyz = new qqyz();
            cqqyz.DoSomething();
            cqqyz.DoOthe();

            Console.ReadKey();
        }
    }

    abstract class qq
    {
        public void DoSomething()
        {
            Console.WriteLine(@"一个方法");

        }

        public abstract void DoOthe();
    }

    class qqyz : qq
    {
        public override void DoOthe()
        {
            Console.WriteLine(@"覆盖基类");

        }
    }
}
